package com.ling.dao;

import com.ling.bean.Report;
import com.ling.bean.ReportExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReportMapper {
    //定制查询1，博客举报
    List<Report> getReportWithBlog();
    //定制查询2，问题举报
    List<Report> getReportWithQuestion();

    //定制查询3，回答举报
    List<Report> getReportWithAnswer();

    long countByExample(ReportExample example);

    int deleteByExample(ReportExample example);

    int deleteByPrimaryKey(String id);

    int insert(Report record);

    int insertSelective(Report record);

    List<Report> selectByExample(ReportExample example);

    Report selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Report record, @Param("example") ReportExample example);

    int updateByExample(@Param("record") Report record, @Param("example") ReportExample example);

    int updateByPrimaryKeySelective(Report record);

    int updateByPrimaryKey(Report record);
}